package cn.xdd._06Exchange;

import cn.xdd.utils.RabbitMqUtils;
import com.rabbitmq.client.Channel;

/**
 * @author user_xdd
 * @Date 2022-05-11 10:54
 * @description 一个另时的队列
 * @return
 */
public class TempQueue {
    public static void main(String[] args) throws  Exception{
        Channel channel = RabbitMqUtils.getChannel();
        String queue = channel.queueDeclare().getQueue();
        channel.basicPublish("","xdd",null,"123456".getBytes("UTF-8"));
    }
}
